Skip to content

Fix dnx not authenticating for private feeds#53151

Closed
robertcoltheart wants to merge 5 commits intodotnet:mainfrom
robertcoltheart:bug/fix-tool-execute-using-credentials
Closed

Fix dnx not authenticating for private feeds#53151
robertcoltheart wants to merge 5 commits intodotnet:mainfrom
robertcoltheart:bug/fix-tool-execute-using-credentials

Conversation

@robertcoltheart
Copy link

Fixes #51375

For dnx execution (dotnet tool exec), if the package source is authenticated the previous method of passing an override source meant that the credentials are lost, since this is the equivalient of passing --source https://mysource and ignoring any config in NuGet.config. We need to pass the explicit source for dnx because we confirm with the user that we will be downloading from a particular source (which may be authenticated).

Copy link

@iamteamstar iamteamstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Despite this complexity, congratulations if you can solved the error.

@baronfel
Copy link
Member

baronfel commented Mar 2, 2026

Thanks for the analysis on the linked issue and this PR - I think it overlaps at least partially with a recently-merged change in #52787 - can you take a look and align your changes with this one to prevent merge conflicts?

@robertcoltheart
Copy link
Author

robertcoltheart commented Mar 2, 2026

@baronfel Not sure I understand the branch targeting process - the linked PR hasn't been merged into main yet, should I wait for this to be back-merged to main before fixing this PR? Or should I re-target this PR to the release/10.0.3xx branch instead? @marcpopMSFT Can you advise on this also?

@iamteamstar
Copy link

iamteamstar commented Mar 3, 2026 via email

@marcpopMSFT
Copy link
Member

@baronfel Not sure I understand the branch targeting process - the linked PR hasn't been merged into main yet, should I wait for this to be back-merged to main before fixing this PR? Or should I re-target this PR to the release/10.0.3xx branch instead? @marcpopMSFT Can you advise on this also?

We have autoamted codeflow through the branches but the flow to main is typically the trickiest (as Nxx and main have the most combined changes). We're a bit behind getting unblocked there. Hopefully we can get this in over the next few days: #53007 and then you can remerge and fix any conflicts.

@robertcoltheart
Copy link
Author

Ok I will re-raise this PR against 10.0.3xx. Thanks for clarifying.

@robertcoltheart
Copy link
Author

Closing in favor of #53322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[10.0.101] dnx/dotnet tool exec not Authenticating on Private NuGet feed

4 participants